package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 蛋糕商品
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 */
@TableName("dangaoshangpin")
public class DangaoshangpinEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public DangaoshangpinEntity() {
		
	}
	
	public DangaoshangpinEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 蛋糕名称
	 */
					
	private String dangaomingcheng;
	
	/**
	 * 蛋糕分类
	 */
					
	private String dangaofenlei;
	
	/**
	 * 蛋糕图片
	 */
					
	private String dangaotupian;
	
	/**
	 * 蛋糕颜色
	 */
					
	private String dangaoyanse;
	
	/**
	 * 蛋糕口味
	 */
					
	private String dangaokouwei;
	
	/**
	 * 蛋糕尺寸
	 */
					
	private String dangaochicun;
	
	/**
	 * 上货时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date shanghuoshijian;
	
	/**
	 * 过期日期
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date guoqiriqi;
	
	/**
	 * 商品详情
	 */
					
	private String shangpinxiangqing;
	
	/**
	 * 单限
	 */
					
	private Integer onelimittimes;
	
	/**
	 * 库存
	 */
					
	private Integer alllimittimes;
	
	/**
	 * 最近点击时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date clicktime;
	
	/**
	 * 积分
	 */
					
	private Integer jf;
	
	/**
	 * 价格
	 */
					
	private Float price;
	
	/**
	 * 会员价
	 */
					
	private Float vipprice;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：蛋糕名称
	 */
	public void setDangaomingcheng(String dangaomingcheng) {
		this.dangaomingcheng = dangaomingcheng;
	}
	/**
	 * 获取：蛋糕名称
	 */
	public String getDangaomingcheng() {
		return dangaomingcheng;
	}
	/**
	 * 设置：蛋糕分类
	 */
	public void setDangaofenlei(String dangaofenlei) {
		this.dangaofenlei = dangaofenlei;
	}
	/**
	 * 获取：蛋糕分类
	 */
	public String getDangaofenlei() {
		return dangaofenlei;
	}
	/**
	 * 设置：蛋糕图片
	 */
	public void setDangaotupian(String dangaotupian) {
		this.dangaotupian = dangaotupian;
	}
	/**
	 * 获取：蛋糕图片
	 */
	public String getDangaotupian() {
		return dangaotupian;
	}
	/**
	 * 设置：蛋糕颜色
	 */
	public void setDangaoyanse(String dangaoyanse) {
		this.dangaoyanse = dangaoyanse;
	}
	/**
	 * 获取：蛋糕颜色
	 */
	public String getDangaoyanse() {
		return dangaoyanse;
	}
	/**
	 * 设置：蛋糕口味
	 */
	public void setDangaokouwei(String dangaokouwei) {
		this.dangaokouwei = dangaokouwei;
	}
	/**
	 * 获取：蛋糕口味
	 */
	public String getDangaokouwei() {
		return dangaokouwei;
	}
	/**
	 * 设置：蛋糕尺寸
	 */
	public void setDangaochicun(String dangaochicun) {
		this.dangaochicun = dangaochicun;
	}
	/**
	 * 获取：蛋糕尺寸
	 */
	public String getDangaochicun() {
		return dangaochicun;
	}
	/**
	 * 设置：上货时间
	 */
	public void setShanghuoshijian(Date shanghuoshijian) {
		this.shanghuoshijian = shanghuoshijian;
	}
	/**
	 * 获取：上货时间
	 */
	public Date getShanghuoshijian() {
		return shanghuoshijian;
	}
	/**
	 * 设置：过期日期
	 */
	public void setGuoqiriqi(Date guoqiriqi) {
		this.guoqiriqi = guoqiriqi;
	}
	/**
	 * 获取：过期日期
	 */
	public Date getGuoqiriqi() {
		return guoqiriqi;
	}
	/**
	 * 设置：商品详情
	 */
	public void setShangpinxiangqing(String shangpinxiangqing) {
		this.shangpinxiangqing = shangpinxiangqing;
	}
	/**
	 * 获取：商品详情
	 */
	public String getShangpinxiangqing() {
		return shangpinxiangqing;
	}
	/**
	 * 设置：单限
	 */
	public void setOnelimittimes(Integer onelimittimes) {
		this.onelimittimes = onelimittimes;
	}
	/**
	 * 获取：单限
	 */
	public Integer getOnelimittimes() {
		return onelimittimes;
	}
	/**
	 * 设置：库存
	 */
	public void setAlllimittimes(Integer alllimittimes) {
		this.alllimittimes = alllimittimes;
	}
	/**
	 * 获取：库存
	 */
	public Integer getAlllimittimes() {
		return alllimittimes;
	}
	/**
	 * 设置：最近点击时间
	 */
	public void setClicktime(Date clicktime) {
		this.clicktime = clicktime;
	}
	/**
	 * 获取：最近点击时间
	 */
	public Date getClicktime() {
		return clicktime;
	}
	/**
	 * 设置：积分
	 */
	public void setJf(Integer jf) {
		this.jf = jf;
	}
	/**
	 * 获取：积分
	 */
	public Integer getJf() {
		return jf;
	}
	/**
	 * 设置：价格
	 */
	public void setPrice(Float price) {
		this.price = price;
	}
	/**
	 * 获取：价格
	 */
	public Float getPrice() {
		return price;
	}
	/**
	 * 设置：会员价
	 */
	public void setVipprice(Float vipprice) {
		this.vipprice = vipprice;
	}
	/**
	 * 获取：会员价
	 */
	public Float getVipprice() {
		return vipprice;
	}

}
